<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心-{$tpshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
</head>

<body class="vip_index">
    <!--------头部开始-------------->
    <include file="Public/header" />
    <!--------头部结束-------------->
    <link rel="stylesheet" href="/Template/pc/kty/Static/css/vip_index.css"/>

    <div class="savek">
        <include file="User/menu" />
        <div class="ddxq">
           <div class="kuang1">
               <div class="touxiang">
                   <img class="tximg"  src="/Template/pc/kty/Static/images/vip_index/touxiang.png" alt=""/>
                   <h3>{$user.nickname}</h3>
                   <p class="yhid">ID:<span>{$user.user_id}</span></p>
               </div>
               <div class="dd2">
                   <div class="qbdd" style="top: 27px;left: 35px">
                        <a href="{:U('Home/User/order_list')}">
                            <img class="qbdimg" src="/Template/pc/kty/Static/images/vip_index/title.png" alt=""/>
                            <span>全部订单</span>
                        </a>
                   </div>
                   <div class="qbdd" style="top: 27px;left: 175px">
                       <a href="{:U('Home/User/account')}">
                           <img class="qbdimg" src="/Template/pc/kty/Static/images/vip_index/coin.png" alt=""/>
                           <span>我的积分</span>
                       </a>
                   </div>
                   <div class="qbdd" style="top: 83px;left: 35px">
                       <a href="">
                           <img class="qbdimg" src="/Template/pc/kty/Static/images/vip_index/title.png" alt=""/>
                           <span>我的活动</span>
                       </a>
                   </div>
                   <div class="qbdd" style="top: 83px;left: 175px">
                       <a href="{:U('Home/User/comment')}">
                           <img class="qbdimg" src="/Template/pc/kty/Static/images/vip_index/title.png" alt=""/>
                           <span>我的评价</span>
                       </a>
                   </div>
               </div>
               <div class="dd3">
                    <div class="wdjb">我的金币：<span>{$user.user_money}</span></div>
                    <a href=""><div class="cja">充值</div></a>
               </div>
           </div>

            <h3 class="ddxqtitle">近期订单</h3>
            <div class="kuang2">
                <p style="margin-left: 20px">产品</p>  <p style="margin-left: 410px">单价</p>  <p style="margin-left: 85px">数量</p>  <p style="margin-left: 94px">实付款</p>
                <p style="margin-left: 85px">状态</p> <p style="margin-left: 99px">操作</p>
            </div>
               <div class="zonkuang">
                   <volist name="order_list" id="list">
                       <div class="spkuang">
                           <p class="time">{$list.add_time|date='Y-m-d',###}</p>
                           <p class="ddh">订单号：<span>{$list.order_sn}</span></p>
                       </div>
                       <volist name="list.goods_list" id="good" offset="0" length='1'>
                            <div class="cpk">
                                <a href="{:U('Home/Goods/goodsInfo',array('id'=>$good['goods_id']))}">
                                    <img class="spimg" src="{$good.goods_id|goods_thum_images=83,83}" alt="">
                                </a>
                                <a href="{:U('Home/Goods/goodsInfo',array('id'=>$good['goods_id']))}">
                                    <p class="sptitle">{$good.goods_name} </p>
                                </a>
                                <span class="spzs">{$good.goods_remark|getSubstr=0,100}</span>
                                <h3 class="spprice">￥{$good.member_goods_price}</h3>
                                <p class="spprice1">￥{$good.goods_price}</p>
                                <h3 class="number">{$good.goods_num}</h3>
                                <h3 class="allprice">￥{$good['goods_num'] * $good['member_goods_price']}</h3>
                                <if condition="$list['shipping_price'] gt 0">
                                  <span class="yf">（含运费￥{$list['shipping_price']}）</span>
                                </if>
                                <h3 class="dfh">{$list['order_status_desc']}</h3>
                                <a href="{:U('Home/User/order_detail',array('id'=>$list['order_id']))}"><span class="klddxq">订单详情</span></a>
                                <if condition="$list.receive_btn eq 1">
                                    <a href="javascript:;" onclick="if(confirm('你确定收到货了吗?')) location.href='{:U('Home/User/order_confirm',array('id'=>$list['order_id']))}'">
                                      <div class="ljfk">收货确认</div>
                                    </a>
                                </if>
                                <if condition="$list.pay_btn eq 1">
                                    <a href="{:U('/Home/Cart/cart4',array('order_id'=>$list[order_id]))}"><div class="ljfk">立即付款</div></a>
                                </if>
                                <if condition="($list[comment_btn] eq 1) and ($good[is_comment] eq 0)">
                                    <a href="{:U('Home/User/comment')}"><div class="ljfk">评价</div></a>
                                </if>
                                <if condition="$list.cancel_btn eq 1">
                                  <a href="javascript:cancel_order({$list.order_id});"><span class="qxdd">取消订单</span></a>
                                </if>
                           </div>
                       </volist>
                   </volist>
                   <div class="fenye" style="width: 1019px; float: initial;">
                    <div class="fykuang">
                      {$page}
                    </div>
                  </div>
               </div>
        </div>
    </div>

    <!--------footer-开始-------------->
    <include file="Public/footer" />
    <!--------footer-结束-------------->
</body>
</html>

<script type="text/javascript">
  //取消订单
  function cancel_order(id){
    if(!confirm("确定取消订单?"))
      return false;
    location.href = "/index.php?m=Home&c=User&a=cancel_order&id="+id;
  }
</script>